<!DOCTYPE html>
<html  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:include="head :: head"></div><br/>
输出Request域中值 <br/>
<div th:text="${hello}"/><br/>
<p th:text="${hello}"/><br/>
[[${hello}]]<br/>
<input th:value="${hello}"/><br/>
输出Session域中值<br/>
<div th:text="${session.h}"/><br/>
获取集合中值<br/>
<table>
    <tr th:each="l,s:${list}">
        <td th:text="${s.count}"></td></td><td th:text="${l}">

    </td><td th:text="${s.last}"></td>
    </tr>
</table><br/>
<div th:text="(${num} == 11)?'是11':'不是11'"></div><br/>
<div th:if="${num == 10}">是10</div>
<div th:if="${num != 10}">不是10</div>
<div th:if="${num} != 13">不是13</div><br/>

输出HTML格式（可以解析样式）
<div th:utext="${gname}"/>

<div th:include="head :: end"></div><br/>
</body>
</html>